Optimal. Leaf size=156 \[ \frac {b^2 \cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Chi}\left (\frac {2 c f}{d}+2 f x\right )}{2 d}+\frac {a^2 \log (c+d x)}{d}-\frac {b^2 \log (c+d x)}{2 d}+\frac {2 a b \text {Chi}\left (\frac {c f}{d}+f x\right ) \sinh \left (e-\frac {c f}{d}\right )}{d}+\frac {2 a b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d}+\frac {b^2 \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 c f}{d}+2 f x\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3398, 3384,
3379, 3382, 3393} \begin {gather*} \frac {a^2 \log (c+d x)}{d}+\frac {2 a b \text {Chi}\left (x f+\frac {c f}{d}\right ) \sinh \left (e-\frac {c f}{d}\right )}{d}+\frac {2 a b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (x f+\frac {c f}{d}\right )}{d}+\frac {b^2 \text {Chi}\left (2 x f+\frac {2 c f}{d}\right ) \cosh \left (2 e-\frac {2 c f}{d}\right )}{2 d}+\frac {b^2 \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (2 x f+\frac {2 c f}{d}\right )}{2 d}-\frac {b^2 \log (c+d x)}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3379
Rule 3382
Rule 3384
Rule 3393
Rule 3398
Rubi steps
\begin {align*} \int \frac {(a+b \sinh (e+f x))^2}{c+d x} \, dx &=\int \left (\frac {a^2}{c+d x}+\frac {2 a b \sinh (e+f x)}{c+d x}+\frac {b^2 \sinh ^2(e+f x)}{c+d x}\right ) \, dx\\ &=\frac {a^2 \log (c+d x)}{d}+(2 a b) \int \frac {\sinh (e+f x)}{c+d x} \, dx+b^2 \int \frac {\sinh ^2(e+f x)}{c+d x} \, dx\\ &=\frac {a^2 \log (c+d x)}{d}-b^2 \int \left (\frac {1}{2 (c+d x)}-\frac {\cosh (2 e+2 f x)}{2 (c+d x)}\right ) \, dx+\left (2 a b \cosh \left (e-\frac {c f}{d}\right )\right ) \int \frac {\sinh \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx+\left (2 a b \sinh \left (e-\frac {c f}{d}\right )\right ) \int \frac {\cosh \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx\\ &=\frac {a^2 \log (c+d x)}{d}-\frac {b^2 \log (c+d x)}{2 d}+\frac {2 a b \text {Chi}\left (\frac {c f}{d}+f x\right ) \sinh \left (e-\frac {c f}{d}\right )}{d}+\frac {2 a b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d}+\frac {1}{2} b^2 \int \frac {\cosh (2 e+2 f x)}{c+d x} \, dx\\ &=\frac {a^2 \log (c+d x)}{d}-\frac {b^2 \log (c+d x)}{2 d}+\frac {2 a b \text {Chi}\left (\frac {c f}{d}+f x\right ) \sinh \left (e-\frac {c f}{d}\right )}{d}+\frac {2 a b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d}+\frac {1}{2} \left (b^2 \cosh \left (2 e-\frac {2 c f}{d}\right )\right ) \int \frac {\cosh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx+\frac {1}{2} \left (b^2 \sinh \left (2 e-\frac {2 c f}{d}\right )\right ) \int \frac {\sinh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx\\ &=\frac {b^2 \cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Chi}\left (\frac {2 c f}{d}+2 f x\right )}{2 d}+\frac {a^2 \log (c+d x)}{d}-\frac {b^2 \log (c+d x)}{2 d}+\frac {2 a b \text {Chi}\left (\frac {c f}{d}+f x\right ) \sinh \left (e-\frac {c f}{d}\right )}{d}+\frac {2 a b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d}+\frac {b^2 \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 c f}{d}+2 f x\right )}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 134, normalized size = 0.86 \begin {gather*} \frac {b^2 \cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Chi}\left (\frac {2 f (c+d x)}{d}\right )+2 a^2 \log (c+d x)-b^2 \log (c+d x)+4 a b \text {Chi}\left (f \left (\frac {c}{d}+x\right )\right ) \sinh \left (e-\frac {c f}{d}\right )+4 a b \cosh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (f \left (\frac {c}{d}+x\right )\right )+b^2 \sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 f (c+d x)}{d}\right )}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 8.27, size = 201, normalized size = 1.29
method | result | size |
risch | \(-\frac {a b \,{\mathrm e}^{-\frac {c f -d e}{d}} \expIntegral \left (1, -f x -e -\frac {c f -d e}{d}\right )}{d}+\frac {a^{2} \ln \left (d x +c \right )}{d}-\frac {b^{2} \ln \left (d x +c \right )}{2 d}-\frac {b^{2} {\mathrm e}^{-\frac {2 \left (c f -d e \right )}{d}} \expIntegral \left (1, -2 f x -2 e -\frac {2 \left (c f -d e \right )}{d}\right )}{4 d}-\frac {b^{2} {\mathrm e}^{\frac {2 c f -2 d e}{d}} \expIntegral \left (1, 2 f x +2 e +\frac {2 c f -2 d e}{d}\right )}{4 d}+\frac {a b \,{\mathrm e}^{\frac {c f -d e}{d}} \expIntegral \left (1, f x +e +\frac {c f -d e}{d}\right )}{d}\) | \(201\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 152, normalized size = 0.97 \begin {gather*} -\frac {1}{4} \, b^{2} {\left (\frac {e^{\left (\frac {2 \, c f}{d} - 2 \, e\right )} E_{1}\left (\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{d} + \frac {e^{\left (-\frac {2 \, c f}{d} + 2 \, e\right )} E_{1}\left (-\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{d} + \frac {2 \, \log \left (d x + c\right )}{d}\right )} + a b {\left (\frac {e^{\left (\frac {c f}{d} - e\right )} E_{1}\left (\frac {{\left (d x + c\right )} f}{d}\right )}{d} - \frac {e^{\left (-\frac {c f}{d} + e\right )} E_{1}\left (-\frac {{\left (d x + c\right )} f}{d}\right )}{d}\right )} + \frac {a^{2} \log \left (d x + c\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 255, normalized size = 1.63 \begin {gather*} \frac {4 \, {\left (a b {\rm Ei}\left (\frac {d f x + c f}{d}\right ) - a b {\rm Ei}\left (-\frac {d f x + c f}{d}\right )\right )} \cosh \left (-\frac {c f - d \cosh \left (1\right ) - d \sinh \left (1\right )}{d}\right ) + {\left (b^{2} {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) + b^{2} {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right )\right )} \cosh \left (-\frac {2 \, {\left (c f - d \cosh \left (1\right ) - d \sinh \left (1\right )\right )}}{d}\right ) + 2 \, {\left (2 \, a^{2} - b^{2}\right )} \log \left (d x + c\right ) + 4 \, {\left (a b {\rm Ei}\left (\frac {d f x + c f}{d}\right ) + a b {\rm Ei}\left (-\frac {d f x + c f}{d}\right )\right )} \sinh \left (-\frac {c f - d \cosh \left (1\right ) - d \sinh \left (1\right )}{d}\right ) + {\left (b^{2} {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) - b^{2} {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right )\right )} \sinh \left (-\frac {2 \, {\left (c f - d \cosh \left (1\right ) - d \sinh \left (1\right )\right )}}{d}\right )}{4 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \sinh {\left (e + f x \right )}\right )^{2}}{c + d x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 144, normalized size = 0.92 \begin {gather*} \frac {b^{2} {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) e^{\left (2 \, e - \frac {2 \, c f}{d}\right )} + 4 \, a b {\rm Ei}\left (\frac {d f x + c f}{d}\right ) e^{\left (e - \frac {c f}{d}\right )} - 4 \, a b {\rm Ei}\left (-\frac {d f x + c f}{d}\right ) e^{\left (-e + \frac {c f}{d}\right )} + b^{2} {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) e^{\left (-2 \, e + \frac {2 \, c f}{d}\right )} + 4 \, a^{2} \log \left (d x + c\right ) - 2 \, b^{2} \log \left (d x + c\right )}{4 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+b\,\mathrm {sinh}\left (e+f\,x\right )\right )}^2}{c+d\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________